package com.yiren.manager.form.personnel;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.form.department.YrStaffInfoForm;
import com.yiren.manager.form.system.YrAccountModelConfigForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;

public class YrAccountForm extends GenericForm{
	
	private static final long serialVersionUID = -3398395524843815809L;

	private String id;

	private String account;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String password;

	private String remark;

	private String staffId;

	private Integer status;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;
 	
	private YrStaffInfoForm staffInfoForm;
	
	private Integer userLevel;
	
	private List<YrAccountModelConfigForm> accountModelConfigForms;
	
	public List<YrAccountModelConfigForm> getAccountModelConfigForms() {
		return accountModelConfigForms;
	}

	public void setAccountModelConfigForms(List<YrAccountModelConfigForm> accountModelConfigForms) {
		this.accountModelConfigForms = accountModelConfigForms;
	}

	public Integer getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(Integer userLevel) {
		this.userLevel = userLevel;
	}

	public YrStaffInfoForm getStaffInfoForm() {
		return staffInfoForm;
	}

	public void setStaffInfoForm(YrStaffInfoForm staffInfoForm) {
		this.staffInfoForm = staffInfoForm;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
